﻿#include "Heap.h"


void test()
{
	Heap h1;
	HeapInit(&h1);
	HeapPush(&h1, 3);
	HeapPush(&h1, 243);
	HeapPush(&h1, 1920);
	HeapPush(&h1, 54);
	HeapPush(&h1, 5124);


	//HeapPop(&h1);
	/*HeapPop(&h1);
	HeapPop(&h1);
	HeapPop(&h1);*/

	while (!HeapEmpty(&h1))
	{
		printf("%d ", HeapTop(&h1));
		HeapPop(&h1);
	}

}


int main()
{
	test();
	return 0;
}
